/*
 * HexTDCreep.java
 *
 * Created on November 18, 2007, 12:48 PM
 *
 * Copyright (C) 2007-2008  Hylke van der Schaaf
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, in version 3 of the License.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
package hextd.creep;

import hextd.Constants.COLOR;
import hextd.Constants.DamageType;
import com.usoog.tdcore.creep.Creep;
import com.usoog.tdcore.player.Player;

/**
 *
 * @author hylke
 */
public interface HexTDCreep extends Creep<HexTDCreepData> {

	public static enum Size {

		small('S', 0.5f, 1),
		normal('N', 1.0f, 10),
		large('L', 1.5f, 100);
		public char letter;
		public float scaleMod;
		public int livesWorth;

		Size(char l, float sm, int lw) {
			letter = l;
			scaleMod = sm;
			livesWorth = lw;
		}
	}

	public String getType();

	public double getPreferredDelay();

	public void remove();

	public void doDamage(Player shooter, long damage, COLOR c);

	public void doDamage(Player shooter, long damage, DamageType t, COLOR c);

	public double getSpeedRepairTime();

	public double getPowerRepairTime();

	public double getSpeedMaxBase();

	public double getPowerBase();

	public int getPathId();

	public boolean isShielded();

	public void setSize(Size s);

	public void setSelected(boolean selected);

	public String getInfoString();

	public String getStatusString();

	public void addStatusListener(CreepChangeListener l);

	public void removeStatusListener(CreepChangeListener l);
}
